class StatusCode:
    SUCCESS = 200
    MODEL_LINK_ERROR = 501
    REQUEST_ERROR = 400
    SERVICE_FAILURE = 500

    def __setattr__(self, name, value):
        if hasattr(self, name):
            raise ValueError(f"常量 {name} 不能被修改")
        super().__setattr__(name, value)